﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XbsWebAPI.EntityFrameworkCore.Entities.Enums;

namespace XbsWebAPI.Application.QueryModel
{
    /// <summary>
    /// 查询条件 - 订房订单
    /// </summary>
    public class QueryOrderDetail : QueryBasic
    {
        /// <summary>
        /// 是否续住
        /// </summary>
        public bool? IsContinueToLive { get; set; }

        /// <summary>
        /// 订单状态
        /// </summary>
        public OrderStatus? OrderStatus { get; set; }

        /// <summary>
        /// 房型Id
        /// </summary>
        public Guid? HouseTypeId { get; set; }


        /// <summary>
        /// 姓名 电话 预订单号 模糊查询
        /// </summary>
        public string Data { get; set; }

        /// <summary>
        /// 查询时间类型（预订类型、入住时间、离店时间）
        /// </summary>
        public OrderTimeType OrderTimeType { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? OrderTimeBegin { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? OrderTimeEnd { get; set; }
    }

    /// <summary>
    /// 查询时间类型：0-预订、1-入住、2-离店
    /// </summary>
    public enum OrderTimeType
    {
        /// <summary>
        /// 预订
        /// </summary>
        Booking = 0,

        /// <summary>
        /// 入住
        /// </summary>
        CheckIn = 1,

        /// <summary>
        /// 离店
        /// </summary>
        CheckOut = 2,
    }
}
